package win.timloong.android.carwiki.customview;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;

/**
 *防止滑动控件时冲突
 */
public class SrcollGridView extends GridView {


    public SrcollGridView(Context context) {
        super(context);
    }

    public SrcollGridView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public SrcollGridView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
            int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
                    MeasureSpec.AT_MOST);
            super.onMeasure(widthMeasureSpec, expandSpec);

    }
}
